package com.itheima.CSM_preX.aabService;

import com.itheima.CSM_preX.aabService.Serv.MemberServ;
import com.itheima.CSM_preX.aacMapper.MemberMapper;
import com.itheima.pojo.Entity.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberImpl implements MemberServ {
    @Autowired
    private MemberMapper memberMapper;

    @Override
    public void add(Member mm) {
        memberMapper.add(mm);
    }

    @Override
    public Member getByPhoneNumber(String telephone) {
        return memberMapper.getByPhoneNumber(telephone);
    }
}
